package com.sikaryofficial.system.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * 用户对象 sys_user
 *
 * @author qinjinyuan
 */
@Getter
@Setter
@ToString
@ApiModel(value = "会员入参", description = "会员入参")
public class SysMemberUser {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "地址id")
    private Long addressId;
    @ApiModelProperty(value = "名")
    @Length(max = 30, message = "名长度不能超过30位")
    private String firstName;
    @ApiModelProperty(value = "姓")
    @Length(max = 30, message = "姓长度不能超过30位")
    private String lastName;
    @ApiModelProperty(value = "用户邮箱")
    @Length(max = 50, message = "用户邮箱长度不能超过50位")
    private String email;
    @ApiModelProperty(value = "手机号码")
    @Length(max = 20, message = "手机号码长度不能超过20位")
    private String phonenumber;
    @ApiModelProperty(value = "用户年龄")
    private Integer age;

    /**ISO国家编码*/
    @ApiModelProperty(value = "ISO国家编码")
    private String isoCountryCode;

    /**
     * 国家
     */
    @ApiModelProperty(value = "国家")
    private String country;

    /**
     * 城市
     */
    @ApiModelProperty(value = "城市", example = "Barnsley")
    private String city;

    /**
     * 区域
     */
    @ApiModelProperty(value = "区域", example = "England")
    private String area;
}
